package com.movitech.mobile.cz.base.supplier.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.movitech.mobile.cz.base.supplier.entity.SHistoryComment;
import com.movitech.mobile.cz.base.supplier.entity.ext.ExtSHistoryComment;
import com.movitech.mobile.cz.base.supplier.entity.ext.SHistoryCommentFindRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 审批历程（审批历史） Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
@Component
@Mapper
public interface ExtSHistoryCommentMapper extends BaseMapper<SHistoryComment> {
    List<ExtSHistoryComment> findHistoryCommentList(SHistoryCommentFindRequest sHistoryCommentFindRequest);
	List<SHistoryComment> findPsPPlanConfirmHistoryList(Page<SHistoryComment> page, Map<String, Object> map);
    List<ExtSHistoryComment> getCommentList(@Param("relatedId") String relatedId,@Param("commentType")  Integer commentType);
    
    List<ExtSHistoryComment> findPsPPlanConfirmHistoryList2(Page<ExtSHistoryComment> page, Map<String, Object> map);

    List<ExtSHistoryComment> getExtByEntity(SHistoryCommentFindRequest sHistoryCommentFindRequest);

    Long historyCommentCount(Map<String, Object> map);

    List<ExtSHistoryComment> historyCommentList(Map<String, Object> map);

    List<ExtSHistoryComment> findOverAllConfirmHistory(Page<ExtSHistoryComment> page, Map<String, Object> map);
}
